home *** CD-ROM | disk | FTP | other *** search
- Path: gail.ripco.com!mambuhl
- From: mambuhl@ripco.com (Martin Ambuhl)
- Newsgroups: comp.lang.c
- Subject: Re:I can`t print the date
- Date: 21 Feb 1996 04:05:13 GMT
- Organization: Ripco Communications, Inc.
- Message-ID: <4ge5lp$mh7@gail.ripco.com>
- NNTP-Posting-Host: foley.ripco.com
-
- asciizero@aol.com (ASCII zero) in <4g5nbf$8s0@newsbf02.news.aol.com>
- asks:
-
-
- >I am trying to use strftime() to format the date into YY-MM-DD. The format
- >seems to be working but I am unable to actually print the formatted
- >string. It compiles just fine using gcc. What have I overlooked?
-
- You have overlooked allocating any space for
-
- > char *str;
-
- Either declare it as an array or malloc() some space.
-
-
- --
- * Martin Ambuhl net: mambuhl@ripco.com
- * Chicago, IL (USA)
-